]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Paint the RedBorderEffect right edge the correct height
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Wed, 9 Jun 2021 06:09:51 +0000 (14:09 +0800)
committerMarge Bot <marge-bot@gnome.org>
Wed, 9 Jun 2021 16:31:19 +0000 (16:31 +0000)
It was being painted one box thickness (`width`) too tall so you could
see a rendering glitch below the bottom right corner until now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1876>

js/ui/lookingGlass.js

index e59fa29306f13a71a4bcf5ad068445bfad2206ee..7604ae4a61fe588547aa228892146b19c1f96c04 100644 (file)
@@ -513,7 +513,7 @@ class RedBorderEffect extends Clutter.Effect {
         pipelineNode.add_rectangle(box);
 
         box.set_origin(alloc.get_width() - width, width);
-        box.set_size(width, alloc.get_height());
+        box.set_size(width, alloc.get_height() - width);
         pipelineNode.add_rectangle(box);
 
         box.set_origin(0, alloc.get_height() - width);